package com.hdax.dm.order.controller;

import com.hdax.dm.order.service.QueryOrderListService;
import com.hdax.dm.utils.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 个人中心的
 */
@RestController
@RequestMapping("/order")
public class QueryOrderListController {
    @Autowired
    private QueryOrderListService queryOrderListService;

    /**
     * 查询最近订单
     * @param param
     * @return
     */
    @RequestMapping("/p/queryorderlist")
    public CommonResponse queryorderlist(@RequestBody Map<String,String> param){
        return queryOrderListService.queryOrderList(param);
    }
}
